/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.htk.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 收藏类Entity
 * @author htk
 * @version 2018-05-24
 */
public class HtkFav extends DataEntity<HtkFav> {
	
	private static final long serialVersionUID = 1L;
	private String userid;		// 用户ID
	private String newsid;		// 咨询id
	
	public HtkFav() {
		super();
	}

	public HtkFav(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户ID长度必须介于 0 和 64 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=64, message="咨询id长度必须介于 0 和 64 之间")
	public String getNewsid() {
		return newsid;
	}

	public void setNewsid(String newsid) {
		this.newsid = newsid;
	}
	
}